using UnityEngine;
using System.Collections;

public class SysDeviceDetect : MonoBehaviour
{
	public GUIText deviceText;

	void Start()
	{
		string infoString = "";

		AppendString( ref infoString, SystemInfo.deviceUniqueIdentifier );
		AppendString( ref infoString, SystemInfo.deviceName );
		AppendString( ref infoString, SystemInfo.deviceModel );
		AppendString( ref infoString, SystemInfo.operatingSystem );
		AppendString( ref infoString, iPhone.generation.ToString() );

		AppendString( ref infoString, "width=" + Screen.width + " height=" + Screen.height );

		deviceText.text = infoString;
	}

	void Update()
	{

	}

	void AppendString(ref string target, string appendString)
	{
		target += appendString + "\n";
	}
}
